package com.ibeeking.found.common.config.feign;

import com.ibeeking.found.common.config.feign.fallback.CopJobFeignClientFallbackFactory;
import com.ibeeking.found.common.entity.TimeTaskJobParam;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author ibeeking
 */
@FeignClient(name = "base-cop-b-server", contextId = "commonCopJobFeignClient", path = "/b", fallbackFactory = CopJobFeignClientFallbackFactory.class, decode404 = true)
public interface CopJobFeignClient {
    /*
    *  客户群发消息定时任务创建
     */
    @PostMapping(value = "/job/feign/v1/createJobInfoForSendMassMessage")
    ResponseResult<Boolean>  createJobInfoForSendMassMessage(@RequestBody TimeTaskJobParam param);
    /*
     *  客户群发消息定时任务删除
     */
    @PostMapping(value = "/job/feign/v1/delJobInfoForSendMassMessage")
    ResponseResult<Boolean>  delJobInfoForSendMassMessage(@RequestBody TimeTaskJobParam param);
    /*
     *  客户群群发消息定时任务
     */
    @PostMapping(value = "/job/feign/v1/createJobInfoForSendGroupMassMessage")
    ResponseResult<Boolean>  createJobInfoForSendGroupMassMessage(@RequestBody TimeTaskJobParam param);
    /*
     *  客户群群发消息定时任务删除
     */
    @PostMapping(value = "/job/feign/v1/delJobInfoForSendGroupMassMessage")
    ResponseResult<Boolean>  delJobInfoForSendGroupMassMessage(@RequestBody TimeTaskJobParam param);

}
